package com.victor.bookretail.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;

/**
 * The customer info
 */
@Data
@Accessors(chain = true)
public class UserInfoBo {
    @ApiModelProperty(value = "User id")
    private Long id;

    @NotEmpty(message = "User name should not be empty")
    @ApiModelProperty(value = "User name", required = true)
    private String name;

    @NotEmpty(message = "Phone number should not be empty")
    @ApiModelProperty(value = "User phone number", required = true)
    private String phone;

    @NotEmpty(message = "User type should not be empty")
    @ApiModelProperty(value = "User type", required = true)
    private String type;

    @ApiModelProperty(value = "User point")
    private Integer point;
}
